package com.bigdata.demo.service.impl;

import com.bigdata.demo.domain.User;
import com.bigdata.demo.repository.UserMapper;
import com.bigdata.demo.service.UserService;
import org.springframework.stereotype.Service;

import javax.inject.Inject;
import java.util.List;

/**
 * Created by root on 2/26/18.
 */
@Service
public class UserServiceImpl implements UserService{

    @Inject
    private UserMapper userMapper;


    public User findOne(Integer id) {
        return userMapper.getUser(id);
    }

    public List<User> findAll() {
        return userMapper.findAll();
    }
}
